package com.dy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.dto.DishDto;
import com.dy.entity.Dish;
import com.dy.entity.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.websocket.server.PathParam;
import java.util.List;

/**
 * ClassName:SetmealMapper
 * Package:com.dy.mapper
 * Description:
 *
 * @Date:2022/8/4 16:06
 * @Author:dy
 */
@Mapper
@Repository
public interface DishMapper extends BaseMapper<Dish> {

    /**
     * @Author dy
     * @Description: 查找菜品集合
     */
    List<DishDto> getDishList(@Param("page") Integer page,@Param("pageSize") Integer pageSize,@Param("name") String name);

    /**
     * @Author dy
     * @Description: 查询菜品图片路径
     */
    List<String> getFileName(@Param("ids") Long[] ids);

    //获取菜品总数
    Long getTotal(@Param("name")String name);
}
